package com.zhongke.cotrun.model.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data()
public class Item implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "id", example = "10")
    private int id;
    /**
     * 主键
     */
    @ApiModelProperty(value = "描述", example = "采矿业")
    private String desc;

    @ApiModelProperty(value = "子领域:多个Item", dataType = "list")
    List<Item> list;

    public Item() {
    }

    public Item(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }
}
